<?php if ( is_single() ) { ?>

<div class="previous-next">
	<div class="left"><?php next_posts_link( '&laquo; Older Entries' ); ?></div>
	<div class="right"><?php previous_posts_link( 'Newer Entries &raquo;' ); ?></div>
</div>

<?php } else { ?>

<?php $_SERVER['REQUEST_URI']  = preg_replace( "/(.*?).php(.*?)&(.*?)&(.*?)&_=/","$2$3", $_SERVER['REQUEST_URI'] ); ?>
	<div class="left"><?php next_posts_link( '&laquo; Older Entries' ); ?></div>
	<div class="right"><?php previous_posts_link( 'Newer Entries &raquo;' ); ?></div>
</div>

<?php } ?>
